package nowcoder;
/**
 * 题目ID：46579 --计算糖果
 * 链接：https://www.nowcoder.com/practice/02d8d42b197646a5bbd0a98785bb3a34?tpId=85&&tqId=29857&rp=1&ru=/activity/oj&qru=/ta/2017test/question-ranking
 */
import java.util.*;
public class Day04_1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n1 = input.nextInt(); // A-B
        int n2 = input.nextInt(); // B-C
        int n3 = input.nextInt(); // A+B
        int n4 = input.nextInt(); // B+C
        // 1 -2 3 4
        // 2 1 3

        // 求A
        int a = (n1 + n3) / 2;
        if((n1 + n3) % 2 != 0){
            System.out.println("No");
            return;
        }

        // 求B
        int b = (n2 + n4) / 2;
        if((n2 + n4) % 2 != 0){
            System.out.println("No");
            return;
        }

        //检验A和B的关系
        if(a - b != n1 || a + b != n3){
            System.out.println("No");
            return;
        }

        // 求C
        int c = (n4 - n2) / 2;
        if((n4 - n2) % 2 != 0){
            System.out.println("No");
            return;
        }

        //检验B和C的关系
        if(b - c != n2 || b + c != n4){
            System.out.println("No");
            return;
        }

        System.out.println(a + " " + b + " " + c);
    }
}
